package com.ruoyi.dataAnalysis.service.impl;

import com.ruoyi.dataAnalysis.domain.DataResponse;
import com.ruoyi.dataAnalysis.domain.InsectType;
import com.ruoyi.dataAnalysis.mapper.DataAnalysisMapper;
import com.ruoyi.dataAnalysis.service.DataAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author Mr-Le
 */
@Service
public class DataAnalysisServiceImpl implements DataAnalysisService {

    @Autowired
    private DataAnalysisMapper dataAnalysisMapper;

    /**
     * 查找 昆虫总数 列表
     * 按时间查找
     * @param insectType 参数，暂未用到
     * @return 列表
     */
    @Override
    public List<String> selectInsectTotalList(DataResponse dataResponse) {
        return dataAnalysisMapper.selectInsectTotalList(dataResponse);
    }

    /**
     *  按天查找虫子列表
     * @param date 日期
     * @return 列表
     */
    @Override
    public List<String> selectInsectByDay(String date) {
        return dataAnalysisMapper.selectInsectByDay(date);
    }
}
